<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class pro_lap_penambahan extends MY_Controller {
	
	function __construct()
	{
		parent::__construct(); 
		
		$this->load->model('pro_lap_penambahan_model', 'LapPenamabahan');
		$this->secure_session();
	}
	
	function cetak(){

		$id = get('id_penambahan');
		
			// Load FPDF
			$this->load->helper('fpdf');
			
			// Set Data
			$data['data']			= $this->LapPenamabahan->GetCetak($id);
			$data['data_list']		= $this->LapPenamabahan->GetCetakList($id);
			// Load View
			$this->load->view('pro_lap_penambahan/cetak', $data);
		
	}
	function index(){
		$data['title'] = "Laporan Penambahan Perangkat";	
		viewByTemplate('pro_lap_penambahan/index', $data, 'grid');
	}

	
	
	function getdata()
	{
		$this->secure_session();
		echo $this->LapPenamabahan->GetJSON();
	}
}
?>